USE [InfoSource]
GO

/****** Object:  Table [dbo].[t_EmailTemplates]    Script Date: 10/27/2013 22:08:53 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[t_EmailTemplates](
	[TemplateID] [int] IDENTITY(1,1) NOT NULL,
	[TemplateName] [nvarchar](100) NOT NULL,
	[TemplateUsage] [nvarchar](50) NOT NULL,
	[TemplateBody] [nvarchar](max) NULL,
 CONSTRAINT [PK_t_EmailTemplates] PRIMARY KEY CLUSTERED 
(
	[TemplateID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

ALTER TABLE [dbo].[t_EmailTemplates] ADD  CONSTRAINT [DF_t_EmailTemplates_TemplateUsage]  DEFAULT (N'all') FOR [TemplateUsage]
GO

